package com.example.admin.controller;

import com.example.admin.service.HomeService;
import com.example.common.utils.RestResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: mtl
 * @Date: 2022/1/24 15:33
 * @Description:
 */
@RestController
@RequestMapping("/home")
public class HomeController {

    @Resource
    HomeService homeService;

    @RequestMapping("/index")
    RestResponse index(){
        return homeService.index();
    }

}
